const TokenVesting = artifacts.require("TokenVesting");
const MylineToken = artifacts.require("MylineToken");


module.exports = function(deployer) {
    const beneficiary = "0x5AEDA56215b167893e80B4fE645BA6d5Bab767DE";

    const start = 1517907891;
    const cliff = 60; // ~1 yr
    const duration = 3600; // ~4yrs
    const amount = 80000;

    deployer.deploy(TokenVesting, beneficiary, start, cliff, duration, true).then(() => {
        return deployer.deploy(MylineToken);
    }).then(() => {
        const mylineToken = MylineToken.at(MylineToken.address);
        mylineToken.transfer(TokenVesting.address, amount);
    });
};
